package io.renren.modules.substation.service.impl;

import io.renren.modules.substation.entity.TInfoEfenceInfoPEntity;
import io.renren.modules.substation.entity.TInfoEfenceInfoPShow;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.substation.dao.TInfoEfenceAreaDao;
import io.renren.modules.substation.entity.TInfoEfenceAreaEntity;
import io.renren.modules.substation.service.TInfoEfenceAreaService;


@Service("tInfoEfenceAreaService")
public class TInfoEfenceAreaServiceImpl extends ServiceImpl<TInfoEfenceAreaDao, TInfoEfenceAreaEntity> implements TInfoEfenceAreaService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TInfoEfenceAreaEntity> page = this.page(
                new Query<TInfoEfenceAreaEntity>().getPage(params),
                new QueryWrapper<TInfoEfenceAreaEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public int updateValueByDevArea(TInfoEfenceAreaEntity tInfoEfenceAreaEntity)
    {
        return baseMapper.updateValueByDevArea(tInfoEfenceAreaEntity);
    }

    @Override
    public List<TInfoEfenceAreaEntity> getValueByDevArea(TInfoEfenceAreaEntity tInfoEfenceAreaEntity)
    {
        return baseMapper.getValueByDevArea(tInfoEfenceAreaEntity);
    }

    @Override
    public List<TInfoEfenceInfoPShow> getAllEfenceByDevArea(TInfoEfenceInfoPShow tInfoEfenceInfoPShow)
    {
        return baseMapper.getAllEfenceByDevArea(tInfoEfenceInfoPShow);
    }

}